<tagLib name="strends" />
<php>
	function showtype($id)
	{
		if($id==1){
			return '文本';
		}elseif($id==2){
			return '图片';
		}else{
			return '图文';
		}
	}
</php>
<include file="Public:header" />
<script type="text/javascript" src="__TMPL__Static/Js/dataList.js"></script>
<div class="handle-btns">
	<strends:imageBtn id="addData" name="addData" value="{%ADD}" click="addData(this,'checkList')" />
	<strends:imageBtn id="editData" name="editData" value="{%EDIT}" click="editData(this,'checkList')" />
	<strends:imageBtn id="removeData" name="removeData" value="{%REMOVE}" click="removeData(this,'checkList')" />
</div>
<strends:list 
	id="checkList" 
	style="list" 
	name="cate" 
	checkbox="true" 
	action="true" 
	datasource="list" 
	show="id:{%ID}|80,title:{%TITLE}|~left,gtype|showtype:{%GTYPE}|~left,grid:{%GRID}|~left,sort:{%SORT}|~left,status|getStatusImg:{%STATUS}|50:toggleStatus|id" 
	actionlist="editData:{%EDIT}:id,removeData:{%REMOVE}:id" action_width="80" />
<div class="pager">{$page}</div>
<include file="Public:footer" />